package com.task.sql.schedule.mapper;/**
 * @ClassName : ExecutorCustomSQLMapper
 * @Description : 执行定制化SQLMapper
 * @Author : liudonghai
 * @Date: 2024-09-13 11:58
 */

import com.task.sql.schedule.mapper.provider.CustomSQLProvider;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * @ClassName : ExecutorCustomSQLMapper
 * @Description : 执行定制化SQLMapper
 * @Author : liudonghai
 * @Date: 2024-09-13 11:58
 */
@Mapper
public interface ExecutorCustomSQLMapper {
    @SelectProvider(type= CustomSQLProvider.class,method = "selectSQL")
    List<Map<String,Object>> selectSQL(String sql);

    @UpdateProvider(type= CustomSQLProvider.class,method = "updateSQL")
    int updateSQL(String sql);

    @DeleteProvider(type= CustomSQLProvider.class,method = "deleteSQL")
    int deleteSQL(String sql);

    @InsertProvider(type= CustomSQLProvider.class,method = "insertSQL")
    int insertSQL(String sql);
}
